package com.hzit.ms.mapper;

import com.hzit.ms.model.SkOrderInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SkOrderInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SkOrderInfo record);

    int insertSelective(SkOrderInfo record);

    SkOrderInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SkOrderInfo record);

    int updateByPrimaryKey(SkOrderInfo record);

    /**
     * 根据用户id和商品id查询秒杀订单
     * @param userId
     * @param goodsId
     * @return
     */
    List<SkOrderInfo> queryByUserIdAndGoodsId(@Param("userId")String userId,@Param("goodsId")String goodsId);


}